//
//  ViewController.m
//  UIViewStudy
//
//  Created by Jason Len on 2019/9/3.
//  Copyright © 2019年 Jason. All rights reserved.
//

#import "ViewController.h"

@interface ViewController ()

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    self.view.backgroundColor=[UIColor blackColor];
    
    UIView *view = [[UIView alloc]init];
    view.frame = CGRectMake(200, 200, 100, 100);
    view.backgroundColor = [UIColor redColor];
    [self.view addSubview:view];
    
    UIView *view2 = [[UIView alloc]init];
    view2.frame = CGRectMake(150,150, 100, 100);
    view2.backgroundColor = [UIColor yellowColor];
    [self.view addSubview:view2];
    
}


- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}


@end
